import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-05-18
 * Time: 13:42
 */
public class Test011 {
    public static void shuXu(int n){
        if(n>=10)
        shuXu(n/10);
        System.out.print(n%10+" ");
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        shuXu(n);
    }
}
